package main

import (
	"Gin-Server-01/com/server/common"
	"fmt"
	"github.com/gohouse/converter"
)

func main() {
	err := converter.NewTable2Struct().
		SavePath("./com/server/pojo/model.go").
		//todo:"用户名:密码@tcp(IP:端口号)/数据库名?charset=utf8"
		Dsn(common.Configs.Database.Dsn).
		TagKey("gorm").
		EnableJsonTag(true).
		Table("admin").
		Run()

	fmt.Println(err)
}
